package com.lyx.mapper;

import com.lyx.entity.Course;
import com.lyx.entity.Student;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * --- Be Humble and Hungry ---
 *
 * @author Liyuexian
 * @date 2024/8/23
 * @desc
 */
public interface CourseMapper {
    List<Course> findAllInfos(@Param("cname") String cname);

    Course hasCourse(@Param("cname") String cname);

    int addCourse(Course course);

    int editCourse(Course course);

    int delCourse(@Param("cname")String cname);

    List<Course> hasStudent(@Param("cname")String cname);

    List<Student> student(Integer cid);

    int deleteStudent(Integer sid);

    int updateNum(Integer cid);
}
